package com.example.adms.businessTrip.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author hyt
 * @since 2023-04-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("business_trip")
public class BusinessTrip implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("business_trip_id")
    private Integer businessTripId;

    @TableId(value = "user_id", type = IdType.AUTO)
    private String userId;

    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @TableField("start_time")
    private LocalDate startTime;

    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @TableField("end_time")
    private LocalDate endTime;

    @TableField("start_location")
    private String startLocation;

    @TableField("end_location")
    private String endLocation;

    @TableField("vehicle")
    private String vehicle;

    @TableField("advance")
    private String advance;

    @TableField("reason")
    private String reason;

    @TableField("pass")
    private Integer pass;

    @TableField("comments")
    private String comments;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("submit_time")
    private LocalDateTime submitTime;


}
